package com.app.logrecord.service;


import com.app.logrecord.pojo.ObjectDiffDTO;
import com.app.logrecord.pojo.dto.OperationPageDto;
import com.app.logrecord.pojo.po.Operation;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.validation.Valid;

/**
 * @author qiangt
 * @version 1.0
 * @date 2024/3/29 14:35
 * @description: 操作记录service
 */
public interface OperationService extends IService<Operation> {

    /**
     * 根据业务id分页查询数据
     *
     * @param pageDto 实例对象
     * @return PageInfo<SysOperation>
     */
    Page<Operation> pageByBusinessId(@Valid OperationPageDto pageDto);

    /**
     * 操作记录存表
     *
     * @param objectDiffDTO 参数传入对象
     * @author Chengxuhan
     * @date 2023-12-27 17:29:41
     */
    void save(ObjectDiffDTO objectDiffDTO);
}